package com.opages.mvc.adapter.consul.serviceregistry;

import com.opages.mvc.adapter.common.client.serviceregistry.AbstractAutoServiceRegistration;
import com.opages.mvc.adapter.common.client.serviceregistry.ServiceRegistry;

public class ConsulAutoRegistration extends AbstractAutoServiceRegistration<ConsulRegistration> {
    private ConsulRegistration consulRegistration;

    public ConsulAutoRegistration(ServiceRegistry<ConsulRegistration> serviceRegistry,ConsulRegistration consulRegistration) {
        super(serviceRegistry);
        this.consulRegistration = consulRegistration;
    }

    @Override
    protected ConsulRegistration getRegistration() {
        return consulRegistration;
    }
}
